package com.lgl.dao;

import com.lgl.pojo.User;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface IUserDao {

    //查询所有用户
    List<User> findAll() throws IllegalAccessException, ClassNotFoundException, IntrospectionException, InstantiationException, SQLException, InvocationTargetException, NoSuchFieldException;

    //根据条件进行用户查询
    User findByCondition(User user) throws IllegalAccessException, ClassNotFoundException, IntrospectionException, InstantiationException, SQLException, InvocationTargetException, NoSuchFieldException;

    //添加用户
    int addUser(User user);

    //删除用户
    int deleteUser(User user);

    //修改用户
    int updateUser(User user);
}
